package com.iwop.moto.utils.LotteryUtils;

import com.iwop.moto.comm.ConfLottery;

import java.util.HashMap;
import java.util.Map;

/**
 * 用户端  抽奖概率 v8版本
 * @author czq
 * @version 1.0
 * @created 2017/3/3 0003.
 */

public class UserCouponVersions {
    /**
     * 用户端
     *
     * @return
     */
    public static Map<Double[]/*金额区间*/, Map<Integer[]/*中奖概率区间*/, String[]/*优惠券列表*/>> version8() {

        Map<Double[]/*金额区间*/, Map<Integer[]/*中奖概率区间*/, String[]/*优惠券列表*/>> map = new HashMap();
        //0-9.99区间
        Double interval_0_9d99[] = {0.0, 9.99};
        Map<Integer[], String[]> map1 = new HashMap<>();
        String couponArr[] = {ConfLottery.零元抵用券};
        map1.put(ConfLottery.r_0_100, couponArr);


        //10-14.99区间
        Double interval_10_14d99[] = {10.0, 14.99};
        Map<Integer[], String[]> map2 = new HashMap<>();
        String couponArr1[] = {ConfLottery.一元抵用券};
        map2.put(ConfLottery.r_0_80, couponArr1);
        String couponArr2[] = {ConfLottery.二元抵用券};
        map2.put(ConfLottery.r_80_100, couponArr2);

        //15-22.99元
        Double interval_15_22d99[] = {15.00, 22.99};
        Map<Integer[], String[]> map3 = new HashMap<>();
        String couponArr3[] = {ConfLottery.一元抵用券};
        map3.put(ConfLottery.r_0_80, couponArr3);
        String couponArr4[] = {ConfLottery.三元抵用券};
        map3.put(ConfLottery.r_80_100, couponArr4);


        //23-32.99元
        Double interval_23_32d99[] = {23.00, 32.99};
        Map<Integer[], String[]> map4 = new HashMap<>();
        String couponArr5[] = {ConfLottery.二元抵用券};
        map4.put(ConfLottery.r_0_20, couponArr5);
        String couponArr6[] = {ConfLottery.一元抵用券};
        map4.put(ConfLottery.r_20_95, couponArr6);
        String couponArr6_1[] = {ConfLottery.四元抵用券};
        map4.put(ConfLottery.r_95_100, couponArr6_1);

        //33-38.99元
        Double interval_33_38d99[] = {33.00, 38.99};
        Map<Integer[], String[]> map5 = new HashMap<>();
        String couponArr7[] = {ConfLottery.四元抵用券};
        map5.put(ConfLottery.r_0_20, couponArr7);
        String couponArr8[] = {ConfLottery.一元抵用券};
        map5.put(ConfLottery.r_20_80, couponArr8);
        String couponArr9[] = {ConfLottery.二元抵用券};
        map5.put(ConfLottery.r_80_100, couponArr9);

        //39-52.99元
        Double interval_39_52d99[] = {39.00, 52.99};
        Map<Integer[], String[]> map6 = new HashMap<>();
        String couponArr10[] = {ConfLottery.三元抵用券};
        map6.put(ConfLottery.r_0_5, couponArr10);
        String couponArr11[] = {ConfLottery.二元抵用券};
        map6.put(ConfLottery.r_5_55, couponArr11);
        String couponArr12[] = {ConfLottery.一元抵用券};
        map6.put(ConfLottery.r_55_95, couponArr12);
        String couponArr13[] = {ConfLottery.六元抵用券};
        map6.put(ConfLottery.r_95_100, couponArr13);

        //53-76.99元
        Double interval_53_76d99[] = {53.00, 76.99};
        Map<Integer[], String[]> map7 = new HashMap<>();
        String couponArr14[] = {ConfLottery.一元抵用券};
        map7.put(ConfLottery.r_0_5, couponArr14);
        String couponArr15[] = {ConfLottery.八元抵用券};
        map7.put(ConfLottery.r_5_10, couponArr15);
        String couponArr16[] = {ConfLottery.二元抵用券};
        map7.put(ConfLottery.r_10_80, couponArr16);
        String couponArr17[] = {ConfLottery.三元抵用券};
        map7.put(ConfLottery.r_80_90, couponArr17);
        String couponArr18[] = {ConfLottery.四元抵用券};
        map7.put(ConfLottery.r_90_100, couponArr18);

        //77-105.99元
        Double interval_77_105d99[] = {77.00, 105.99};
        Map<Integer[], String[]> map8 = new HashMap<>();
        String couponArr19[] = {ConfLottery.六元抵用券};
        map8.put(ConfLottery.r_0_5, couponArr19);
        String couponArr20[] = {ConfLottery.十一抵用券};
        map8.put(ConfLottery.r_5_10, couponArr20);
        String couponArr21[] = {ConfLottery.四元抵用券};
        map8.put(ConfLottery.r_10_40, couponArr21);
        String couponArr22[] = {ConfLottery.三元抵用券};
        map8.put(ConfLottery.r_40_70, couponArr22);
        String couponArr23[] = {ConfLottery.二元抵用券};
        map8.put(ConfLottery.r_70_100, couponArr23);

        //106-148.99元

        Double interval_106_148d99[] = {106.00, 148.99};
        Map<Integer[], String[]> map9 = new HashMap<>();
        String couponArr24[] = {ConfLottery.九元抵用券};
        map9.put(ConfLottery.r_0_10, couponArr24);
        String couponArr25[] = {ConfLottery.四元抵用券};
        map9.put(ConfLottery.r_10_30, couponArr25);
        String couponArr26[] = {ConfLottery.三元抵用券};
        map9.put(ConfLottery.r_30_90, couponArr26);
        String couponArr27[] = {ConfLottery.十五抵用券};
        map9.put(ConfLottery.r_90_100, couponArr27);

        //149-217.99元
        Double interval_149_217d99[] = {149.00, 217.99};
        Map<Integer[], String[]> map10 = new HashMap<>();
        String couponArr28[] = {ConfLottery.二十三抵用券};
        map10.put(ConfLottery.r_0_5, couponArr28);
        String couponArr29[] = {ConfLottery.六元抵用券};
        map10.put(ConfLottery.r_5_25, couponArr29);
        String couponArr30[] = {ConfLottery.五元抵用券};
        map10.put(ConfLottery.r_25_85, couponArr30);
        String couponArr31[] = {ConfLottery.八元抵用券};
        map10.put(ConfLottery.r_85_100, couponArr31);

        //218-263.99
        Double interval_218_263d99[] = {218.00, 263.99};
        Map<Integer[], String[]> map11 = new HashMap<>();
        String couponArr32[] = {ConfLottery.三十抵用券};
        map11.put(ConfLottery.r_0_5, couponArr32);
        String couponArr33[] = {ConfLottery.九元抵用券};
        map11.put(ConfLottery.r_5_10, couponArr33);
        String couponArr34[] = {ConfLottery.八元抵用券};
        map11.put(ConfLottery.r_10_70, couponArr34);
        String couponArr35[] = {ConfLottery.五元抵用券};
        map11.put(ConfLottery.r_70_100, couponArr35);

        //264-325.99
        Double interval_264_325d99[] = {264.00, 325.99};
        Map<Integer[], String[]> map12 = new HashMap<>();
        String couponArr36[] = {ConfLottery.三十五抵用券};
        map12.put(ConfLottery.r_0_5, couponArr36);
        String couponArr37[] = {ConfLottery.十二抵用券};
        map12.put(ConfLottery.r_5_25, couponArr37);
        String couponArr38[] = {ConfLottery.十六抵用券};
        map12.put(ConfLottery.r_25_65, couponArr38);
        String couponArr39[] = {ConfLottery.六元抵用券};
        map12.put(ConfLottery.r_65_100, couponArr39);

        //326-437.99
        Double interval_326_437d99[] = {326.00, 437.99};
        Map<Integer[], String[]> map12_1 = new HashMap<>();
        String couponArr40_1[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.十五抵用券};
        map12_1.put(ConfLottery.r_0_100, couponArr40_1);

        //438-512.99
        Double interval_438_512d99[] = {438.00, 512.99};
        Map<Integer[], String[]> map13 = new HashMap<>();
        String couponArr40[] = {ConfLottery.二元抵用券,
                ConfLottery.五元抵用券,
                ConfLottery.七元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.二十二抵用券};
        map13.put(ConfLottery.r_0_100, couponArr40);

        //513-634.99
        Double interval_513_634d99[] = {513.00, 634.99};
        Map<Integer[], String[]> map14 = new HashMap<>();
        String couponArr41[] = {ConfLottery.二元抵用券,
                ConfLottery.五元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.二十八抵用券};
        map14.put(ConfLottery.r_0_100, couponArr41);

        //635-711.99
        Double interval_635_711d99[] = {635.00, 711.99};
        Map<Integer[], String[]> map15 = new HashMap<>();
        String couponArr42[] = {ConfLottery.二元抵用券,
                ConfLottery.五元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.十一抵用券,
                ConfLottery.三十四抵用券};
        map15.put(ConfLottery.r_0_100, couponArr42);

        //712-786.99
        Double interval_712_786d99[] = {712.00, 786.99};
        Map<Integer[], String[]> map16 = new HashMap<>();
        String couponArr43[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.四十抵用券};
        map16.put(ConfLottery.r_0_100, couponArr43);

        //787-863.99
        Double interval_787_863d99[] = {787.00, 863.99};
        Map<Integer[], String[]> map17 = new HashMap<>();
        String couponArr44[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.四十二抵用券};
        map17.put(ConfLottery.r_0_100, couponArr44);

        //864-933.99
        Double interval_864_933d99[] = {864.00, 933.99};
        Map<Integer[], String[]> map18 = new HashMap<>();
        String couponArr45[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.四十六抵用券};
        map18.put(ConfLottery.r_0_100, couponArr45);

        //934-1024.99
        Double interval_934_1024d99[] = {934.00, 1024.99};
        Map<Integer[], String[]> map19 = new HashMap<>();
        String couponArr46[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.五十抵用券};
        map19.put(ConfLottery.r_0_100, couponArr46);

        //1025-1235.99
        Double interval_1025_1235d99[] = {1025.00, 1235.99};
        Map<Integer[], String[]> map20 = new HashMap<>();
        String couponArr47[] = {ConfLottery.二元抵用券,
                ConfLottery.四元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.五十五抵用券};
        map20.put(ConfLottery.r_0_100, couponArr47);

        //1236-1824.99
        Double interval_1236_1824d99[] = {1236.00, 1824.99};
        Map<Integer[], String[]> map21 = new HashMap<>();
        String couponArr48[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.五十五抵用券,
                ConfLottery.十五抵用券,
                ConfLottery.一百抵用券};
        map21.put(ConfLottery.r_0_100, couponArr48);

        //1825-2344.99
        Double interval_1825_2344d99[] = {1825.00, 2344.99};
        Map<Integer[], String[]> map22 = new HashMap<>();
        String couponArr49[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.十元抵用券,
                ConfLottery.五十五抵用券,
                ConfLottery.十五抵用券,
                ConfLottery.一百五十抵用券};
        map22.put(ConfLottery.r_0_100, couponArr49);

        //2345-2867.99
        Double interval_2345_2867d99[] = {2345.00, 2867.99};
        Map<Integer[], String[]> map23 = new HashMap<>();
        String couponArr50[] = {ConfLottery.四元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.十二抵用券,
                ConfLottery.五十五抵用券,
                ConfLottery.十五抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.一百五十抵用券};
        map23.put(ConfLottery.r_0_100, couponArr50);

        //2868-3346.99
        Double interval_2868_3346d99[] = {2868.00, 3346.99};
        Map<Integer[], String[]> map24 = new HashMap<>();
        String couponArr51[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.二十抵用券,
                ConfLottery.五十五抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.二百抵用券};
        map24.put(ConfLottery.r_0_100, couponArr51);

        //3347-4775.99
        Double interval_3347_4775d99[] = {3347.00, 4775.99};
        Map<Integer[], String[]> map25 = new HashMap<>();
        String couponArr52[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.二十五抵用券,
                ConfLottery.三十五抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.二百抵用券};
        map25.put(ConfLottery.r_0_100, couponArr52);

        //4776-7512.99
        Double interval_4776_7512d99[] = {4776.00, 7512.99};
        Map<Integer[], String[]> map26 = new HashMap<>();
        String couponArr53[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.二十五抵用券,
                ConfLottery.四十抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.二百抵用券,
                ConfLottery.一百五十抵用券};
        map26.put(ConfLottery.r_0_100, couponArr53);


        //7513-12345.99
        Double interval_7513_12345d99[] = {7513.00, 12345.99};
        Map<Integer[], String[]> map27 = new HashMap<>();
        String couponArr54[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.二十五抵用券,
                ConfLottery.四十五抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.二百抵用券,
                ConfLottery.二百五十抵用券};
        map27.put(ConfLottery.r_0_100, couponArr54);


        //12346-9999999
        Double interval_12346_99999999d99[] = {12346.00, 99999999.99};
        Map<Integer[], String[]> map28 = new HashMap<>();
        String couponArr55[] = {ConfLottery.四元抵用券,
                ConfLottery.六元抵用券,
                ConfLottery.八元抵用券,
                ConfLottery.三十抵用券,
                ConfLottery.四十五抵用券,
                ConfLottery.一百抵用券,
                ConfLottery.二百抵用券,
                ConfLottery.二百五十抵用券,
                ConfLottery.三百抵用券};
        map28.put(ConfLottery.r_0_100, couponArr55);


        map.put(interval_0_9d99, map1);
        map.put(interval_10_14d99, map2);
        map.put(interval_15_22d99, map3);
        map.put(interval_23_32d99, map4);
        map.put(interval_33_38d99, map5);
        map.put(interval_39_52d99, map6);
        map.put(interval_53_76d99, map7);
        map.put(interval_77_105d99, map8);
        map.put(interval_106_148d99, map9);
        map.put(interval_149_217d99, map10);
        map.put(interval_218_263d99, map11);
        map.put(interval_264_325d99, map12);
        map.put(interval_326_437d99, map12_1);
        map.put(interval_438_512d99, map13);
        map.put(interval_513_634d99, map14);
        map.put(interval_635_711d99, map15);
        map.put(interval_712_786d99, map16);
        map.put(interval_787_863d99, map17);
        map.put(interval_864_933d99, map18);
        map.put(interval_934_1024d99, map19);
        map.put(interval_1025_1235d99, map20);
        map.put(interval_1236_1824d99, map21);
        map.put(interval_1825_2344d99, map22);
        map.put(interval_2345_2867d99, map23);
        map.put(interval_2868_3346d99, map24);
        map.put(interval_3347_4775d99, map25);
        map.put(interval_4776_7512d99, map26);
        map.put(interval_7513_12345d99, map27);
        map.put(interval_12346_99999999d99, map28);
        return map;

    }
}
